package com.universal.frame.generalutils;

import android.os.Environment;
import java.io.File;

public class Constants {

    public final static String URL_REG_EX = "^(http|com.hpxx.ylzswl.https|ftp)\\://([a-zA-Z0-9\\.\\-]+(\\:[a-zA-"
            + "Z0-9\\.&%\\$\\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{"
            + "2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}"
            + "[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|"
            + "[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-"
            + "4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0"
            + "-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.[a-zA-Z]{2,4})(\\:[0-9]+)?(/"
            + "[^/][a-zA-Z0-9\\.\\,\\?\\'\\\\/\\+&%\\$\\=~_\\-@]*)*$";



    // 手机号正则
    public static final String PHONE_ZZ = "[1][3578]\\d{9}";

    public static final String ACTIVITY_PUTEXTRA_CURRENT_PAGER = "currentPager";

    public static final int PHOTO_REQUEST_CAMERA = 1;// 拍照
    public static final int PHOTO_REQUEST_GALLERY = 2;// 从相册中选择

    // 缓存图片文件夹路径
    public static final String IMAGE_PATH = "/sdcard/com.tossgrp.tossdjk101/data/image/";

    //缓存图片基础文件名, 具体文件名为基础文件名+时间戳
    public static final String IMAGE_BASE_NAME = "tmp";

    //缓存图片文件类型
    public static final String IMAGE_BASE_TYPE = ".jpeg";

    public static final String INTENT_ORDER_DETAILS = "intent_order_details";
    /***
     * app文件大小
     */
    public static final String SP_FIELD_APP_FILE_SIZE = "appFileSize";

    public static final String ACTIVITY_PUTEXTRA_APK_URL = "apkUrl";

    public static final String ACTIVITY_PUTEXTRA_APK_VERSION = "versionName";

    public static final String LAUNCHE_SPLASH_FLAG = "Launche_splash_flag";

}
